package main

import (
	"strconv"

	"gitee.com/zhuoyue6/wecom_msg/config"
	"gitee.com/zhuoyue6/wecom_msg/internal"
	"github.com/gin-gonic/gin"
)

var GlobalRouter *gin.Engine

func init() {
	config.Init()
	GlobalRouter = internal.GetGlobalRouter()
}

func main() {
	port := config.GlobalConfig.Server.Port
	GlobalRouter.Run(":" + strconv.Itoa(port))
}
